/*
 ********************************************************************************
 * @FileName  : button.h
 * @CreateDate: 2021-8-7
 * @Author    : GaoQiu
 * @Copyright : Copyright(C) GaoQiu
 *              All Rights Reserved.
 ********************************************************************************
 */

#ifndef BUTTON_H_
#define BUTTON_H_

#include "utils/defs_types.h"

#define BTN_MAX_NUM     2
#define BTN_VALID_LVL   0

typedef uint8_t  BtnMask_t;

typedef struct{
	uint8_t cnt;
	uint8_t code[BTN_MAX_NUM];
}BtnData_t;



void Btn_Init(void);
bool_t Btn_Scan(void);

BtnData_t *Btn_GetData(void);


#endif /* BUTTON_H_ */
